package com.stone.serverless.config.controller;

import com.stone.serverless.config.service.StoneConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/1/26 9:12
 * @Version: 1.0.0
 */
@RestController
public class ConfigController {

    @Autowired
    private StoneConfigService configService;


    @GetMapping(value = "/get")
    public Map<String, Object> getConfig(@RequestParam String dataId, @RequestParam String groupId) {
        return configService.getConfig(dataId, groupId);
    }
}
